<template>
  <div class="divLocationView">
    <div class="divLocationViewCondition">
      <div class="divAreaTop" style="margin-bottom: 21px">
        <p class="divTitle">库区选择</p>
        <div class="divWarehouseSelect" style="width: 224px">
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
          <div class="divAreaContent">
            <div class="divAreaCondition">
              <el-input suffix-icon="el-icon-search"></el-input>
            </div>
            <div class="divAreaList">
              <div
                v-on:click="setHighlighted(1)"
                :class="{ highlighted: isHighlighted === 1 }"
              >
                出库缓存区
              </div>
              <div
                v-on:click="setHighlighted(2)"
                :class="{ highlighted: isHighlighted === 2 }"
              >
               入库缓存区
              </div>
               <div
                v-on:click="setHighlighted(3)"
                :class="{ highlighted: isHighlighted === 3}"
              >
               冻结区
              </div>
               <div
                v-on:click="setHighlighted(4)"
                :class="{ highlighted: isHighlighted === 4 }"
              >
                存储区
              </div>
               <div
                v-on:click="setHighlighted(5)"
                :class="{ highlighted: isHighlighted === 5 }"
              >
                大库房
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="divLocationViewDisplay">
      <div class="divTop">
       <div style="margin-right:100px">库区总览</div>
        <div class="divOverView">
          <div class="divItem">库存总计：5</div>
          <div class="divItem">
            <div class="divSquare" style="background-color: rgb(195, 195, 195); width: 12px; height: 12px; border-radius: 3px;"></div>
            <span>停用库位：0</span>
          </div>
          <div class="divItem">
            <div class="divSquare" style="background-color: rgb(0, 190, 118); width: 12px; height: 12px; border-radius: 3px;"></div>
            <span>占用库位：0</span>
          </div>
          <div class="divItem">
            <div class="divSquare" style="background-color: rgb(178, 220, 204); width: 12px; height: 12px; border-radius: 3px;"></div>
            <span>库位：0</span>
          </div>
          <div>
          </div>
      </div>
    </div>
    <div class="divContent">
    <el-tooltip class="item" effect="dark" content="Bottom Center 提示文字" placement="bottom" style="background-color: rgb(195, 195, 195); width: 36px; height: 36px; border-radius: 7px;">
      <el-button></el-button>
    </el-tooltip>
       <el-tooltip class="item" effect="dark" content="Bottom Center 提示文字" placement="bottom" style="background-color: rgb(195, 195, 195); width: 36px; height: 36px; border-radius: 7px;">
      <el-button></el-button>
    </el-tooltip>
       <el-tooltip class="item" effect="dark" content="Bottom Center 提示文字" placement="bottom" style="background-color: rgb(195, 195, 195); width: 36px; height: 36px; border-radius: 7px;">
      <el-button></el-button>
    </el-tooltip>
       <el-tooltip class="item" effect="dark" content="Bottom Center 提示文字" placement="bottom" style="background-color: rgb(195, 195, 195); width: 36px; height: 36px; border-radius: 7px;">
      <el-button></el-button>
    </el-tooltip>
    </div>
  </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      isHighlighted: null,
      options: [
        {
          value: '选项1',
          label: '黄金糕'
        }

      ],
      value: ''
    }
  },

  methods: {
    setHighlighted (id) {
      this.isHighlighted = id
    }
  }
}
</script>

<style lang="less" scoped>
/deep/ .el-button{
    background-color: #b2dccc!important;
}
/deep/ .el-button:hover{
  border: 2px solid green;
}
.divSquare {
    float: left;
    margin-top: 5px;
    margin-right: 7px;
}
.divItem{
     float: left;
    margin-right: 43px;
}
.divOverView {
    float: left;
}
.divTitle {
    width: 64px;
    height: 22px;
    font-size: 16px;
    font-family: PingFangSC,PingFangSC-Medium;
    font-weight: 500;
    text-align: left;
    color: #332929;
    line-height: 22px;
    float: left;
    margin-right: 103px;
}
 .divContent {
    width: 100%;
    height: calc(100% - 43px);
    overflow-y: auto;
 }
.divLocationViewDisplay {
    padding: 27px 19px 27px 20px;
    float: left;
    height: 100%;
}
.divTop{
  margin-bottom: 21px;
    height: 22px;
    display: flex;
    margin-top: 15px;
}
.divAreaList div{
  width: 140px;
  height: 40px;
    border-radius: 4px;
    box-shadow: 0 0 6px 0 rgb(255 178 0 / 40%) !important;
    margin: 0 auto;
    margin-top: 20px;
    font-size: 13px;
    font-family: PingFangSC,PingFangSC-Medium;
    font-weight: 500;
    text-align: center;
    color: #ffb200;
    line-height: 40px;
    cursor: pointer;
}
.highlighted {
  background-color: #ffb200;
   color: #332929 !important;
}
.item {
  width: 100px;
  height: 100px;
}
/deep/.el-input--medium .el-input__inner {
  height: 40px;
  line-height: 40px;
  border: 1px solid #f8f5f5;
  background: #f8f5f5;
  border-radius: 6px;
}
/deep/ .el-input {
  position: relative;
  font-size: 14px;
  display: inline-block;
  width: 100%;
}
.divAreaContent {
  margin-top: 20px;
  background: #fdfcf9;
  border: 1px solid #f7f2f1;
  border-radius: 6px;
  padding: 30px 29px 0 26px;
}
.divAreaCondition {
  margin-bottom: 10px;
}
.divLocationView {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
  margin: 20px 29px 30px 29px;
  display: flex;
}
.divLocationViewCondition {
  width: 263px;
  padding: 27px 19px 27px 20px;
      float: left;
}
.divLocationViewDisplay {
  padding: 27px 19px 27px 20px;

  height: 100%;
  width: calc(100% - 273px);
}
.divTitle {
  width: 64px;
  height: 22px;
  font-size: 16px;
  font-family: PingFangSC, PingFangSC-Medium;
  font-weight: 500;
  text-align: left;
  color: #332929;
  line-height: 22px;
  margin-bottom: 22px;
  margin-left: 10px;

}
/deep/ .el-select {
  display: inline-block;
  position: relative;

}

</style>
